From 76461a8004caf4490f84140b0551d1f5296241f6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 10 Jan 2018 07:35:46 -0500 Subject: [PATCH] Quiet a compiler warning Avoid this warning the other way, without bumping the libvulkan dependency. --- gdk/gdkvulkancontext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c index 8bfbd80246..1c4e7906b0 100644 --- a/gdk/gdkvulkancontext.c +++ b/gdk/gdkvulkancontext.c @@ -93,7 +93,7 @@ G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GdkVulkanContext, gdk_vulkan_context, GDK_TYPE const char * gdk_vulkan_strerror (VkResult result) { - switch (result) + switch ((int)result) { case VK_SUCCESS: return "Command successfully completed."; -- 2.30.2